#ifndef _CLOCKIN_MACHINE_H
#define _CLOCKIN_MACHINE_H
#include "mysql_util.h"
#include<string>
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<cstring>
using namespace std;

#define WORKTIME (8*60) //8小时工作制 480min
#define CLOCKIN_TIME1 "07:00:00"
#define CLOCKIN_TIME2 "09:00:00"
#define CLOCKIN_TIME3 "24:00:00"

string GetDatePrevious(int year,int mon,int day,int hour,int min,int sec);
void punch_in(card_info& ci);
void punch_out(card_info& ci);
void clockin_machine_start();

#endif